package com.m20studio.mop.menu;

import java.util.ArrayList;
import java.util.List;

import com.m20studio.mop.util.ClassArray;

public class GridHandler {
	
	private List<GridInfo> gridlists;
	private GridInfo info;
	
	public GridHandler(){
		gridlists = new ArrayList<GridInfo>();
	}

	public List<GridInfo> getListFeed(){
		return gridlists;
	}
	
	public void handlerMenu(int lmId){
		for (int i=0;i<ClassArray.CLASSARRAY[lmId].length;i++){
			info = new GridInfo();
			info.setName(ClassArray.CLASSARRAY[lmId][i][0]);
			info.setUrl(ClassArray.CLASSARRAY[lmId][i][1]);
			info.setLmId(lmId);
			info.setClassId(i);
			gridlists.add(info);
		}
		
	}

}
